<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript">
$(function(){
	   $('#userResertForm').click(function(){
		  
		 $(".textInput").val("");
	    });
	  });
</script>
<form id="pagerForm" method="post" action="${ctx}/sysuser/page" >
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);">
        <input type="hidden" name="pageNum" value="1" />
        <input type="hidden" name="pageSize" value="${page.pageSize}" />
        <input type="hidden" name="numPerPage" value="${page.pageSize}" />
	<div class="searchBar">
		<ul class="searchContent" style="height: 40px;">
			<li>
				<label>用户名称：</label>
				<input type="text" name="systemUserName" value="${systemUserName}" class="digits"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				<li><div class="buttonActive">
							<div class="buttonContent">
								
								<button type="button" id="userResertForm">重置</button>
							</div>
						</div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${ctx}/sysuser/create" target="dialog" title="系统用户添加" width="550" height="290"  maxable="false"minable="false"mask="true"><span>添加</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="158">
		<thead>
			<tr>
				<th align="center">序号</th>
				<th align="center">用户ID</th>
				<th align="center">用户名称</th>
				<th align="center">角色名称</th>
				<th align="center">角色描述</th>
				<th align="center">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.data}" var="item">
				<tr target="sid_user" rel="${item.id}">
					<td>${item.rowNum}</td>
					<td>${item.id}</td>
					<td>${item.userName}</td>
					<td>${item.roleName}</td>
					<td>${item.roleDesc}</td>
					<td>
						<c:if test="${item.userName!='admin' }"><a title="确定要删除吗？" target="ajaxTodo" href="${ctx}/sysuser/delete?uId=${item.id}"  class="btnDel">删除</a></c:if>
						<a title="编辑"  href="${ctx}/sysuser/update?uId=${item.id}" target="dialog"maxable="false"minable="false" title="系统用户添加" width="550" height="290"  class="btnEdit" mask="true">编辑</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
    <%@include file="/WEB-INF/view/commons/paging.jsp"%>
</div>
